package com.yfp.job.task;

import com.yfp.common.core.domain.R;
import com.yfp.device.api.RemoteDeviceService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * 定时任务企业微信发送报警信息
 *
 * @author ruoyi
 */
@Slf4j
@Component("deviceTask")
public class DeviceTask {

    @Resource
    private RemoteDeviceService remoteDeviceService;

    public void sendWeiXin() {
        log.info("定时任务开始执行：企业微信发送报警信息");
        R<Void> voidR = remoteDeviceService.sendWeiXin();
    }
}
